<template>
  <div>
    <el-main>
      <el-table
        :data="tableData"
        border
        style="width: 100%"
        :header-cell-style="{ background: '#1D8CE0', color: '#ffffff' }"
      >
        <el-table-column fixed="left" prop="id" label="工号" width="65">
        </el-table-column>
        <el-table-column fixed="left" prop="name" label="姓名" width="100">
        </el-table-column>
        <el-table-column prop="sex" label="性别" width="65">
          <template slot-scope="scope">
            <el-tag
              :type="scope.row.sex === '男' ? 'success' : 'danger'"
              disable-transitions
              >{{ scope.row.sex }}</el-tag
            >
          </template>
        </el-table-column>
        <el-table-column prop="department" label="应聘部门" width="150">
        </el-table-column>

        <el-table-column prop="post" label="应聘岗位" width="150">
        </el-table-column>

        <el-table-column prop="mobile" label="电话" width="120">
        </el-table-column>

        <el-table-column prop="email" label="邮箱"> </el-table-column>

        <el-table-column prop="employdate" label="入职日期" width="120">
        </el-table-column>
        <el-table-column prop="long" label="入职时长" width="120">
        </el-table-column>
      </el-table>
    </el-main>
  </div>
</template>

<script>
export default {
  props: ["tableData"],

  methods: {},
};
</script>

<style lang="scss" scoped>
</style>